<?php 

namespace Home\Controller ;
class GoodsController extends HomeController {
	function _initialize(){
		parent::_initialize();
	}

	function detail(){
		$id = I('get.id');
		if(!$id){
			redirect(U('Index/index'));
		}
		$detail = get_goods_detail($id);
		$this->assign('detail' , $detail);
		$this->display('');
	}
}